<div style="height: 100%; display: flex; flex-direction: column;">
    <div style="margin-bottom: 4px;">
        <button onclick="addItems(undefined)">Add Items</button>
        <button onclick="addItems(2)">Add Items addIndex=2</button>
        <button onclick="updateItems()">Update Top 2</button>
        <button onclick="onRemoveSelected()">Remove Selected</button>
        <button onclick="getRowData()">Get Row Data</button>
        <button onclick="clearData()">Clear Data</button>
    </div>
    <div style="flex-grow: 1;">
        <div id="myGrid" style="height: 100%;" class="ag-theme-quartz"></div>
    </div>
</div>